<template>
  <div class="detail paddingTop">
    
    <div class="detail__list">
      <hq-cell
              v-for="(item,index) of column"
              :key="item._id"
              :data="item"
              :to="`/detail/${item._id}?collectionName=column`"
            />
    </div>
    
    
    
  </div>
</template>

<script>
  import HqCell from '../components/hq-cell/hq-cell.vue'
  
  export default {
    
    data(){
      return {
        column:[]
      }
    },
    components:{
      HqCell
    },
    
    mounted(){
      this.$axios({
		  
      // axios({
        url:'/news/column',
        params:{
          _limit: 10
        },
      }).then(
      // res=>{console.log(res)}
        res=>this.column=res.data.data
      )
    }
  }
</script>

<style scoped>
  .detail__list{
    padding: 0 .2rem;
  }
</style>
